/// orderModelId : 1
/// orderModelName : null
/// orderType : null
/// name : "零点菜单"
/// isWeek : 1
/// menuJson : {"branchId":1000,"name":"零点菜单","tenantId":1000,"orderModelId":1,"saasId":1000,"remark":"这是一个备注","weekMenuModel":1,"content":[{"ruleCategory":[{"categary":"主食","selectNumber":2,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]},{"weekDay":2,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]},{"categary":"小吃","selectNumber":1,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]}],"range":"05:00-09:00","timeSection":"breakfast"}],"siteList":[{"siteName":"桌1","id":4},{"siteName":"南北食堂大杂烩","id":6}]}
/// menuStartDate : "2022-03-21 00:00:00"
/// menuEndDate : "2022-03-27 00:00:00"
/// status : 0
/// isDel : null
/// remark : "这是一个备注"
/// branchId : 1000

class WeekFoodMenuData {
  WeekFoodMenuData({
      this.orderModelId, 
      this.orderModelName, 
      this.orderType, 
      this.name, 
      this.isWeek, 
      this.menuJson, 
      this.menuStartDate, 
      this.menuEndDate, 
      this.status, 
      this.isDel, 
      this.remark, 
      this.branchId,});

  WeekFoodMenuData.fromJson(dynamic json) {
    orderModelId = json['orderModelId'];
    orderModelName = json['orderModelName'];
    orderType = json['orderType'];
    name = json['name'];
    isWeek = json['isWeek'];
    menuJson = json['menuJson'] != null ? MenuJson.fromJson(json['menuJson']) : null;
    menuStartDate = json['menuStartDate'];
    menuEndDate = json['menuEndDate'];
    status = json['status'];
    isDel = json['isDel'];
    remark = json['remark'];
    branchId = json['branchId'];
  }
  int? orderModelId;
  dynamic orderModelName;
  dynamic orderType;
  String? name;
  int? isWeek;
  MenuJson? menuJson;
  String? menuStartDate;
  String? menuEndDate;
  int? status;
  dynamic isDel;
  String? remark;
  int? branchId;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['orderModelId'] = orderModelId;
    map['orderModelName'] = orderModelName;
    map['orderType'] = orderType;
    map['name'] = name;
    map['isWeek'] = isWeek;
    if (menuJson != null) {
      map['menuJson'] = menuJson?.toJson();
    }
    map['menuStartDate'] = menuStartDate;
    map['menuEndDate'] = menuEndDate;
    map['status'] = status;
    map['isDel'] = isDel;
    map['remark'] = remark;
    map['branchId'] = branchId;
    return map;
  }

}

/// branchId : 1000
/// name : "零点菜单"
/// tenantId : 1000
/// orderModelId : 1
/// saasId : 1000
/// remark : "这是一个备注"
/// weekMenuModel : 1
/// content : [{"ruleCategory":[{"categary":"主食","selectNumber":2,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]},{"weekDay":2,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]},{"categary":"小吃","selectNumber":1,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]}],"range":"05:00-09:00","timeSection":"breakfast"}]
/// siteList : [{"siteName":"桌1","id":4},{"siteName":"南北食堂大杂烩","id":6}]

class MenuJson {
  MenuJson({
      this.branchId, 
      this.name, 
      this.tenantId, 
      this.orderModelId, 
      this.saasId, 
      this.remark, 
      this.weekMenuModel, 
      this.content, 
      this.siteList,});

  MenuJson.fromJson(dynamic json) {
    branchId = json['branchId'];
    name = json['name'];
    tenantId = json['tenantId'];
    orderModelId = json['orderModelId'];
    saasId = json['saasId'];
    remark = json['remark'];
    weekMenuModel = json['weekMenuModel'];
    if (json['content'] != null) {
      content = [];
      json['content'].forEach((v) {
        content?.add(Content.fromJson(v));
      });
    }
    if (json['siteList'] != null) {
      siteList = [];
      json['siteList'].forEach((v) {
        siteList?.add(SiteList.fromJson(v));
      });
    }
  }
  int? branchId;
  String? name;
  int? tenantId;
  int? orderModelId;
  int? saasId;
  String? remark;
  dynamic weekMenuModel;
  List<Content>? content;
  List<SiteList>? siteList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['branchId'] = branchId;
    map['name'] = name;
    map['tenantId'] = tenantId;
    map['orderModelId'] = orderModelId;
    map['saasId'] = saasId;
    map['remark'] = remark;
    map['weekMenuModel'] = weekMenuModel;
    if (content != null) {
      map['content'] = content?.map((v) => v.toJson()).toList();
    }
    if (siteList != null) {
      map['siteList'] = siteList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// siteName : "桌1"
/// id : 4

class SiteList {
  SiteList({
      this.siteName, 
      this.id,});

  SiteList.fromJson(dynamic json) {
    siteName = json['siteName'];
    id = json['id'];
  }
  String? siteName;
  int? id;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['siteName'] = siteName;
    map['id'] = id;
    return map;
  }

}

/// ruleCategory : [{"categary":"主食","selectNumber":2,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]},{"weekDay":2,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]},{"categary":"小吃","selectNumber":1,"goodsInfo":[{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]}]
/// range : "05:00-09:00"
/// timeSection : "breakfast"

class Content {
  Content({
      this.ruleCategory, 
      this.range, 
      this.timeSection,});

  Content.fromJson(dynamic json) {
    if (json['ruleCategory'] != null) {
      ruleCategory = [];
      json['ruleCategory'].forEach((v) {
        ruleCategory?.add(RuleCategory.fromJson(v));
      });
    }
    range = json['range'];
    timeSection = json['timeSection'];
  }
  List<RuleCategory>? ruleCategory;
  String? range;
  String? timeSection;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    if (ruleCategory != null) {
      map['ruleCategory'] = ruleCategory?.map((v) => v.toJson()).toList();
    }
    map['range'] = range;
    map['timeSection'] = timeSection;
    return map;
  }

}

/// categary : "主食"
/// selectNumber : 2
/// goodsInfo : [{"weekDay":1,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]},{"weekDay":2,"goodsList":[{"id":21,"goodsName":"荤菜hahhahha"}]}]

class RuleCategory {
  RuleCategory({
      this.categary, 
      this.selectNumber, 
      this.goodsInfo,});

  RuleCategory.fromJson(dynamic json) {
    categary = json['categary'];
    selectNumber = json['selectNumber'];
    if (json['goodsInfo'] != null) {
      goodsInfo = [];
      json['goodsInfo'].forEach((v) {
        goodsInfo?.add(GoodsInfo.fromJson(v));
      });
    }
  }
  String? categary;
  int? selectNumber;
  List<GoodsInfo>? goodsInfo;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['categary'] = categary;
    map['selectNumber'] = selectNumber;
    if (goodsInfo != null) {
      map['goodsInfo'] = goodsInfo?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// weekDay : 1
/// goodsList : [{"id":21,"goodsName":"荤菜hahhahha"}]

class GoodsInfo {
  GoodsInfo({
      this.weekDay, 
      this.goodsList,});

  GoodsInfo.fromJson(dynamic json) {
    weekDay = json['weekDay'];
    if (json['goodsList'] != null) {
      goodsList = [];
      json['goodsList'].forEach((v) {
        goodsList?.add(GoodsList.fromJson(v));
      });
    }
  }
  int? weekDay;
  List<GoodsList>? goodsList;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['weekDay'] = weekDay;
    if (goodsList != null) {
      map['goodsList'] = goodsList?.map((v) => v.toJson()).toList();
    }
    return map;
  }

}

/// id : 21
/// goodsName : "荤菜hahhahha"

class GoodsList {
  GoodsList({
      this.id, 
      this.goodsName,});

  GoodsList.fromJson(dynamic json) {
    id = json['id'];
    goodsName = json['goodsName'];
  }
  int? id;
  String? goodsName;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['goodsName'] = goodsName;
    return map;
  }

}